from django.contrib import admin
from .models import Article


# Register your models here.
class ArticleAdmin(admin.ModelAdmin):
    list_display_links = ['title', ]
    search_fields = ['auth__username', 'title']
    list_display = ['title', 'create_date_time', 'auth']
    readonly_fields = ['auth']


admin.site.register(Article, ArticleAdmin)
